import request from '@/utils/request'
// 登录
export const loginAPI = (data) => {
  return request({ url: '/sys/login', method: 'post', data })
}

// 请求用户信息
export const getUserIofoAPI = () => {
  return request({ url: '/sys/profile' })
}

// 更新密码
export const updataPasswordAPI = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}
